package net.cathackers.devel.scmp.impl;

import net.cathackers.devel.scmp.interfaces.Envelope;
import net.cathackers.devel.scmp.interfaces.ServiceManagerInfo;

public class DefaultEnvelope implements Envelope {
    private ServiceManagerInfo from_;
    private ServiceManagerInfo to_;
    public DefaultEnvelope(ServiceManagerInfo source, ServiceManagerInfo destination) {
	this.from_ = source;
	this.to_   = destination;
    }
    @Override
    public void flip() {
	ServiceManagerInfo tmp = to_;
	to_ = from_;
	from_ = tmp;
    }

    @Override
    public ServiceManagerInfo getFromServiceManager() {
	return from_;
    }

    @Override
    public ServiceManagerInfo getToServiceManager() {
	return to_;
    }

}
